package com.yuwei.base

import android.app.Application
import android.content.Context
import com.umeng.commonsdk.UMConfigure
import com.umeng.socialize.PlatformConfig
import kotlinx.coroutines.*

abstract class BaseApp: Application() {
    //用于初始化 协程作用域
    private val mInitSDKCoroutineScope = CoroutineScope(SupervisorJob() + Dispatchers.IO)
    companion object{
        private lateinit var mContext : Context
    }

    override fun attachBaseContext(base: Context?) {
        super.attachBaseContext(base)
    }
    override fun onCreate() {
        super.onCreate()

        mContext = this


//        LogUtils.i("BaseApp onCreate了${System.currentTimeMillis()}")
        UMConfigure.init(this, "5a12384aa40fa3551f0001d1", "umeng", UMConfigure.DEVICE_TYPE_PHONE, "");
        PlatformConfig.setQQZone("101830139","5d63ae8858f1caab67715ccd6c18d7a5");
    }

}